added toggle functionality to employee view; debugging login errors