complete user login logout functions of user management system, wich
will be tested later