Unify register and login forms