documentation of login function and login dataset completed