adapted login/logout to FunctionalAction class
final changes for Delivery, adapted login/logout to FunctionalActions class