Show error message if registration failed

#150 closed
Merge pull request #191 from COMP231-S62G1/angela16

Show error message if registration failed