added sessions and users. fixed issue with registration when setting authorization