Some modifications, session removed on registeruser