Form token for register page and edit profile page

Added form token when registering and editing profile