Added getUserLogins function.