added user registration to user api