adding login ajax and adding email type + required fields on login form