Fixed bug where action for the login was not set properly