Fixed before_filter for edit