Added Swich Statement
Modified the User Access Permi Function