some work on JSON based user registration
user registration and authentication via JSON now complete. need to work on token-based authentication