Fixed authentication using StackOverflow