user registration code

Basic user registration code