Create account settings and refactor login logic and view