Update Login page to handle json return
changed alert