user registration & code redundance