fixed redirect bug after unauthorized access