added initwithformat to pass username value into string