Password validation and Register redirect route fix