Fixed issue with login function, was passing 3 arguments to _login regardless of the number of arguments sent