Added form and AJAX calls to backend for login.
Implemented front end, only tested manually.