Commiting prior to taking loginDialog out of the MainActivity and placing in a dedicated fragment