Removed extra code
Added style for errors