Adding styles
Updating task details correctly and handling null
pointers and adding error messages