Send username and password as arguments to log in function