Fixed bad spelling in locale lib and added username validation on the client