Fixed registerAction and login redirect to referrer