modifying method for getting logins