Implemented Email and Password Validation

Adjustments to PHP made to make sure user enters a correct email
address(using filter_var($email, FILTER_VALIDATE_EMAIL)) and a secure
password(using preg_match).