function to return last login date