Angular authenticating users from an API