added basic login functionality
removed unecessary parameter from a call to login