fixing if condition in for accept agreement method in session.rb