added method to check if user credentials are in db to enable a login if
no server is online
enable log in if server is offline but the credentials are saved in the
db