adding username requirement in js