code to update last login time upon login

update the last login time upon login to db