updated login php for ajax validation