added rest resource for registration