changes on log in fixed spelling issue
minor changes to AJAX functionality