Change method to login database with password