Added registration and session mangament