added devise_helper and error messages