Fix database file and login

Easier to use our own config
Fix the check if password empty
Improve message for bad login