bug fixes on login page, editItem page