standardizes form for login and register