Simple JS login with JSON data