Registration validation bug fix