added validations for email and username
validating email, not done
changes
fixed tests for user authentication