Add ajax based check of login credentials