register user method added