Changed the login function to display items when successful.