user registration
 parse code and key file