Basically complete frontend for login and register actions.