Wrote mainpage AJAX test
Included error handling and optional username input