fix problem with displaying username in template