Added pattern field to Portal to model to check if a redirect by the 'next' parameter holds an allowed domain.