Added auth.js for login and register page (for security).
Added properties.xml that contains db information
Code Refactoring.