Solved problem with duplicate entry. Chenged equials and hash method in User.