function to return last login date

returns last login date