added login method to MainActivity, linked by onClick form
MainActivity.xml