added login functionality

added the login functionality