MainPage.xaml.cs for login page

This contains the code for login page.