added validations to sign up and edit settings