simple script to JSON user details for registration