Added getlogins() function