That's exactly what's needed, accept nickname length is supposed to be for a maximum of 10 chars, and whether the nick is 4 chars or 10 chars, it's aligned
I'm not going to make it all for you. I gave that code so that you can incorporate it with whatever you are doing. Try to create the end result yourself, you'll be proud you managed without needing to be told how to do it.