Created GmailLogin class

Created the GmailLogin class and changed the flow of the main to use it.