Coding authentication logic fails

Anyone else struggling with user authentication logic… im struggling on a few projects with something basic as User Authentication - this should be out of the box just work.

:sob: :sob: :sob: :sob: