Register user function added