check_user_session.js corrected