Implemented mail sending after registration