Added code to send User object as an AJAX request to the '/login' URL. *Includes alerts for debugging purposes*