fixed user database error by creating an @user_attributes