setLossParams function

Check user input related to loss function