Adds validation to sign up form