Changing verification of 'if user' to 'if session.user_id'