Use macros instead of raw numbers for login type