Adding checks for username and email length (fixing issue #6)