Removed department table and fixed login issues