Added console message on successful registration
Fixed minor syntax error