Added user registration, logging in and activation.