added lastlogin logging for user