Login_val now correctly saves last login time