Adding code for Main login activity