Added duplicate username check for registration.