implemented the check user name exists in creating an account