put the suer admin code in a seperate function

after testing this function should be erased.
adding pooja.