fixed issue with including the login functions twice