Added clientside response for invalid registration. Fixed the waiting to...

... verify before writing functionality