500 error on login page in production

Thank you @J_D !!

Just wasted about 3 hours trying to work out what the hell was going on! :slight_smile: