Almost got auth working