added php classes and validation for login and sign up