fixed bugs in user register and login and in item creation