converted update nickname to POST method.