Command class used to validate user details while saving

Updating intendation

Fixed Error:While saving user into db