refactored code to remove form from index.html and add jquery event handlers
added login and registration function to main page
Merge pull request #4 from Seonaid/add-login

Add login