added proper login to panel