Adding validations and tests for user