added @user.save, improved but did not fix the problem entirely - still debugging