updated redirect and check  email user permissions