Login page created with validation, login event and userValidation function