Updated registration, logout fixed