add username when register and handle empty profile picture