Updated User.php

included a new query that gets the login, first, and last names of a user as well as a function that calls this functionality.