Fixed issue where user is not redirected to admin