Added error messages for registration and add task forms