Fixed small spacing issue
changed error condition