using AFNetworking to authenticate