Error handling in profile view