Check the credentials instead of asking two times for the password