added login functionality to wpcbackoffice