remove flash messages from app.html and fix going to profile error