added validdation of nick for the main page