login flow refactor
invalid login spec
specs globals and refactor
encrypt refactor