Fixed register bug; Hide modal after sending officer key