Change text-box style based on condition