fixed devise issue and logic in provider views