Validated Login page with jquery and changed codes for checking if user input is email or username