Added login and JSON response displaying