user registration sketch working