user reg API built & returning new user id & creating new library for user