Error handling to registration window