MAde some changes to the login , added a new class GF to use the encoded function globally.