Authentication now works. Currently still ignores error messages