Add the functions to login, islogged, islogged as student and as teacher.