code to update last login time upon login