users: added time of last activity
added redirect to last visited page after login