Prevent direct access to edit form

Prevent users from directly accessing to edit form