Refactoring footer creds function