add mongoose db model
rewrite register model with mongoose
add docs folder and write error code of register