added LoginController for adding the login functionality