Fix last_login_timestamp update bug