add register function
add unique validator for user