Login buttons refactoring