Added registration, authentication