Permission denied, bug fixes, few sanity checks.

1. Permission denied view add
2. fixed manage contest bug,
3. sanity check in mhome