added routing and login-form validation