Added auto login feature

The login data needs to be encrypted.