Setup login using id and view for formulary