Added checking of user/password existence within database.