Converting to Angular
Working on auth.