Added flash for reg page