Added support for login using AFNetworking