for the security concern

add the register new user function for the authentication and
autherization