Added error message when register is unsucessful