Merged Alex's code for Sign-in/Sign-up/user-params for forms