Added modal login form and ajax controller methods to handle login submissions.