Making Ajax login working again