Started coding login with JSON message and XMLHttpRequest