registration activity with exceptional handling added