implemented onClose globally
forgot password routing works