added register feature

Enable user registration