fix for 500 error redirection
record last_login
record last_login