bug fixes for login and item editing