Added max length to forms to prevent truncating.
Added function to edit permissions to pages administration.