Implemented login and register form validation

Response handler is not implemented yet.