Added admin switch to user function
Added admin user switch