Implemented a simple ajax example in login page.