Add json authentication and login