Functionality for Dept, Dept Task, Login, Logout