Login functionallity integrated with RequestFactory.