Fixing logging in with angular