login and register emptied

When a user logins or registers a new account, the login and register
fields are emptied.