Added functionality to login with incrypted passwords.