fixed issue with anonymous user on logout for flask-principal
reworked the api views and continue to work on new recipe