Fixed unique username and proper return value in JSON